#!/usr/bin/env sh
DISPLAYNAME=" Route: show Mobroute stoptimes on cursor"
[ -z "$MOBSQLFILTER" ] && MOBSQLFILTER="{glob: nyc subway}"
[ -z "$TERM" ] && TERM="foot"

"$TERM" sh -c "
  mobroute \
    -cmd stoptimes \
    -lat \"$MEPO_CURSOR_LAT\" \
    -lon \"$MEPO_CURSOR_LON\" \
    -f \"$MOBSQLFILTER\" \
  2> /tmp/mobroutedebug \
  | less -SR
"
